<?php


namespace app\admin\validate;




use think\Validate;

class UpdatePassword extends Validate
{
    protected $rule = [
        'newpass' => 'require|min:6|max:16',
        'repass' => 'require|min:6|max:16|confirm:newpass'
    ];

    protected $message = [
        'newpass.require' => '新密码必填',
        'newpass.min' => '新密码至少6字符',
        'newpass.max' => '新密码至多16字符',
        'repass.require' => '确认密码必填',
        'repass.min' => '确认密码至少6字符',
        'repass.max' => '确认密码至多16字符',
        'repass.confirm' => '确认密码和新密码不一致'
    ];
}